package com.supermap.application.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 基层单位数据表
 * Created by sun'fei on 2018-01-02.
 */
@Entity
@Table(name = "T_BASE_DATA")
public class TBaseData {

    //ID
    private String id;
    //数据版本
    private String version;
    //X坐标
    private String SMX;
    //Y坐标
    private String SMY;
    //行业编码
    private String A00011;
    //行业大类
    private String A00011X;
    //产业编码
    private String P00001;
    //详细名称
    private String A00002;
    //法定代表人
    private String B00003;
    //注册地址
    private String B00004;
    //行政区划代码
    private String B00005;
    //邮政编码
    private String B00006;
    //联系方式
    private String B00007;
    //主营业务活动
    private String B00008;
    //机构类型 1 工商 2 民政 3 国税 4 地税 5 统计 6 其他
    private String B00010;
    //注册号
    private String regno;
    //住所
    private String dom;
    //功能区代码
    private String functionCode;
    //园区代码
    private String parkCode;
    //电子邮箱
    private String B00036;
    //网站地址
    private String B00037;
    //企业经济类型
    private String economicCode;
    //登记注册类型 枚举 0设立 1 变更 2 注销
    private String A00032;
    //企业控股情况
    private String B00041;
    //企业设立日期 yyyy-mm-dd
    private String B00043;
    //营业状态
    private String B00045;
    //女性从业人数
    private String B00057;
    //主营收入
    private String B00059;
    //资产总计
    private String B00060;
    //建筑业资质等级
    private String B00063;
    //房地产业资质等级
    private String B00064;
    //物业管理资质等级
    private String B00065;
    //住宿业星级
    private String B00069;
    //是否分支机构单位 0 否 1 是
    private String issub;
    //上级主管部门单位或集团母公司统一社会信用代码 issub为1时填
    private String bruniscid;
    //是否亿元投资项目单位 0 否 1 是
    private String B00159;
    //部门指标
    private String E00001;
    //从业人员数量
    private String B00132;
    //全年营业收入
    private String B00058;
    //注册资本（枚举 1：5000万以上 、2 ：1000万-5000万、 3 ：1000-500 、4 ：500-50万 、5： 50万以下）
    private String B04084;
    //纳税总额
    private String B04085;
    //建筑物编码
    private String D00052;
    //建筑物分类
    private String D00078;
    //预留字段
    private String flag_a;
    //预留字段
    private String flag_b;
    //预留字段
    private String flag_c;
    //预留字段
    private String flag_d;


    public TBaseData() {}

    public TBaseData(String id, String version, String SMX, String SMY, String a00011, String a00011X,
                     String p00001, String a00002, String b00003, String b00004, String b00005,
                     String b00006, String b00007, String b00008, String b00010, String regno,
                     String dom, String functionCode, String parkCode, String b00036, String b00037, String economicCode,
                     String a00032, String b00041, String b00043, String b00045, String b00057,
                     String b00059, String b00060, String b00063, String b00064, String b00065,
                     String b00069, String issub, String bruniscid, String b00159, String e00001,
                     String b00132, String b00058, String b04084, String b04085, String d00052,
                     String d00078, String flag_a, String flag_b, String flag_c, String flag_d) {
        this.id = id;
        this.version = version;
        this.SMX = SMX;
        this.SMY = SMY;
        A00011 = a00011;
        A00011X = a00011X;
        P00001 = p00001;
        A00002 = a00002;
        B00003 = b00003;
        B00004 = b00004;
        B00005 = b00005;
        B00006 = b00006;
        B00007 = b00007;
        B00008 = b00008;
        B00010 = b00010;
        this.regno = regno;
        this.dom = dom;
        this.functionCode = functionCode;
        this.parkCode = parkCode;
        B00036 = b00036;
        B00037 = b00037;
        this.economicCode = economicCode;
        A00032 = a00032;
        B00041 = b00041;
        B00043 = b00043;
        B00045 = b00045;
        B00057 = b00057;
        B00059 = b00059;
        B00060 = b00060;
        B00063 = b00063;
        B00064 = b00064;
        B00065 = b00065;
        B00069 = b00069;
        this.issub = issub;
        this.bruniscid = bruniscid;
        B00159 = b00159;
        E00001 = e00001;
        B00132 = b00132;
        B00058 = b00058;
        B04084 = b04084;
        B04085 = b04085;
        D00052 = d00052;
        D00078 = d00078;
        this.flag_a = flag_a;
        this.flag_b = flag_b;
        this.flag_c = flag_c;
        this.flag_d = flag_d;
    }

    @GenericGenerator(name = "generator", strategy = "increment")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name="VERSION", length=100)
    public String getVersion() {
        return this.version == null ? new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) : this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Column(name = "SMX", length = 100)
    public String getSMX() {
        return SMX;
    }

    public void setSMX(String SMX) {
        this.SMX = SMX;
    }

    @Column(name = "SMY", length = 100)
    public String getSMY() {
        return SMY;
    }

    public void setSMY(String SMY) {
        this.SMY = SMY;
    }

    @Column(name = "A00011", length = 100)
    public String getA00011() {
        return A00011;
    }

    public void setA00011(String a00011) {
        A00011 = a00011;
    }

    @Column(name = "A00011X", length = 100)
    public String getA00011X() {
        return A00011X;
    }

    public void setA00011X(String a00011X) {
        A00011X = a00011X;
    }

    @Column(name = "P00001", length = 100)
    public String getP00001() {
        return P00001;
    }

    public void setP00001(String p00001) {
        P00001 = p00001;
    }

    @Column(name = "A00002", length = 1000)
    public String getA00002() {
        return A00002;
    }

    public void setA00002(String a00002) {
        A00002 = a00002;
    }

    @Column(name = "B00003", length = 100)
    public String getB00003() {
        return B00003;
    }

    public void setB00003(String b00003) {
        B00003 = b00003;
    }

    @Column(name = "B00004", length = 1000)
    public String getB00004() {
        return B00004;
    }

    public void setB00004(String b00004) {
        B00004 = b00004;
    }

    @Column(name = "B00005", length = 100)
    public String getB00005() {
        return B00005;
    }

    public void setB00005(String b00005) {
        B00005 = b00005;
    }

    @Column(name = "B00006", length = 100)
    public String getB00006() {
        return B00006;
    }

    public void setB00006(String b00006) {
        B00006 = b00006;
    }

    @Column(name = "B00007", length = 100)
    public String getB00007() {
        return B00007;
    }

    public void setB00007(String b00007) {
        B00007 = b00007;
    }

    @Column(name = "B00008", length = 100)
    public String getB00008() {
        return B00008;
    }

    public void setB00008(String b00008) {
        B00008 = b00008;
    }

    @Column(name = "B00010", length = 100)
    public String getB00010() {
        return B00010;
    }

    public void setB00010(String b00010) {
        B00010 = b00010;
    }

    @Column(name = "REGNO", length = 100)
    public String getRegno() {
        return regno;
    }

    public void setRegno(String regno) {
        this.regno = regno;
    }

    @Column(name = "DOM", length = 3000)
    public String getDom() {
        return dom;
    }

    public void setDom(String dom) {
        this.dom = dom;
    }

    @Column(name = "FUNCTION_CODE", length = 100)
    public String getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(String functionCode) {
        this.functionCode = functionCode;
    }

    @Column(name = "PARK_CODE", length = 100)
    public String getParkCode() {
        return parkCode;
    }

    public void setParkCode(String parkCode) {
        this.parkCode = parkCode;
    }

    @Column(name = "B00036", length = 100)
    public String getB00036() {
        return B00036;
    }

    public void setB00036(String b00036) {
        B00036 = b00036;
    }

    @Column(name = "B00037", length = 100)
    public String getB00037() {
        return B00037;
    }

    public void setB00037(String b00037) {
        B00037 = b00037;
    }

    @Column(name = "ECONOMIC_CODE", length = 100)
    public String getEconomicCode() {
        return economicCode;
    }

    public void setEconomicCode(String economicCode) {
        this.economicCode = economicCode;
    }

    @Column(name = "A00032", length = 100)
    public String getA00032() {
        return A00032;
    }

    public void setA00032(String a00032) {
        A00032 = a00032;
    }

    @Column(name = "B00041", length = 100)
    public String getB00041() {
        return B00041;
    }

    public void setB00041(String b00041) {
        B00041 = b00041;
    }

    @Column(name = "B00043", length = 100)
    public String getB00043() {
        return B00043;
    }

    public void setB00043(String b00043) {
        B00043 = b00043;
    }
    @Column(name = "B00045", length = 100)
    public String getB00045() {
        return B00045;
    }

    public void setB00045(String b00045) {
        B00045 = b00045;
    }

    @Column(name = "B00057", length = 100)
    public String getB00057() {
        return B00057;
    }

    public void setB00057(String b00057) {
        B00057 = b00057;
    }

    @Column(name = "B00059", length = 100)
    public String getB00059() {
        return B00059;
    }

    public void setB00059(String b00059) {
        B00059 = b00059;
    }

    @Column(name = "B00060", length = 100)
    public String getB00060() {
        return B00060;
    }

    public void setB00060(String b00060) {
        B00060 = b00060;
    }

    @Column(name = "B00063", length = 100)
    public String getB00063() {
        return B00063;
    }

    public void setB00063(String b00063) {
        B00063 = b00063;
    }

    @Column(name = "B00064", length = 100)
    public String getB00064() {
        return B00064;
    }

    public void setB00064(String b00064) {
        B00064 = b00064;
    }

    @Column(name = "B00065", length = 100)
    public String getB00065() {
        return B00065;
    }

    public void setB00065(String b00065) {
        B00065 = b00065;
    }

    @Column(name = "B00069", length = 100)
    public String getB00069() {
        return B00069;
    }

    public void setB00069(String b00069) {
        B00069 = b00069;
    }

    @Column(name = "ISSUB", length = 100)
    public String getIssub() {
        return issub;
    }

    public void setIssub(String issub) {
        this.issub = issub;
    }

    @Column(name = "BRUNISCID", length = 100)
    public String getBruniscid() {
        return bruniscid;
    }

    public void setBruniscid(String bruniscid) {
        this.bruniscid = bruniscid;
    }

    @Column(name = "B00159", length = 100)
    public String getB00159() {
        return B00159;
    }

    public void setB00159(String b00159) {
        B00159 = b00159;
    }

    @Column(name = "E00001", length = 100)
    public String getE00001() {
        return E00001;
    }

    public void setE00001(String e00001) {
        E00001 = e00001;
    }

    @Column(name = "B00132", length = 100)
    public String getB00132() {
        return B00132;
    }

    public void setB00132(String b00132) {
        B00132 = b00132;
    }

    @Column(name = "B00058", length = 100)
    public String getB00058() {
        return B00058;
    }

    public void setB00058(String b00058) {
        B00058 = b00058;
    }

    @Column(name = "B04084", length = 100)
    public String getB04084() {
        return B04084;
    }

    public void setB04084(String b04084) {
        B04084 = b04084;
    }

    @Column(name = "B04085", length = 100)
    public String getB04085() {
        return B04085;
    }

    public void setB04085(String b04085) {
        B04085 = b04085;
    }

    @Column(name = "D00052", length = 100)
    public String getD00052() {
        return D00052;
    }

    public void setD00052(String d00052) {
        D00052 = d00052;
    }

    @Column(name = "D00078", length = 100)
    public String getD00078() {
        return D00078;
    }

    public void setD00078(String d00078) {
        D00078 = d00078;
    }

    @Column(name = "flag_a", length = 100)
    public String getFlag_a() {
        return flag_a;
    }

    public void setFlag_a(String flag_a) {
        this.flag_a = flag_a;
    }

    @Column(name = "flag_b", length = 100)
    public String getFlag_b() {
        return flag_b;
    }

    public void setFlag_b(String flag_b) {
        this.flag_b = flag_b;
    }

    @Column(name = "flag_c", length = 100)
    public String getFlag_c() {
        return flag_c;
    }

    public void setFlag_c(String flag_c) {
        this.flag_c = flag_c;
    }

    @Column(name = "flag_d", length = 100)
    public String getFlag_d() {
        return flag_d;
    }

    public void setFlag_d(String flag_d) {
        this.flag_d = flag_d;
    }


}
